﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 入库管理表
    /// </summary>
    public class Inbound
    {
        /// <summary>
        /// 入库单唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int InboundID { get; set; }
        /// <summary>
        /// 入库单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string InboundCode {  get; set; }
        /// <summary>
        /// 入库单类型
        /// </summary>
        public InboundType Type { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string OrderCode {  get; set; }
        /// <summary>
        /// 供应商编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SupplierCode { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SupplierName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ContactPerson { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Phone { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductId {  get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity { get; set; }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string  CreatorUserName { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Remarks { get; set; }
        

        /// <summary>
        /// 状态
        /// </summary>
        public WarehouseInStatus Status { get; set; }


    }
}
